﻿using Mate.Db.Model.Merchant;
using Mate.Db.SqlSugar;
using Mate.Dto.Merchant;
using System;
using System.Collections.Generic;
using System.Text;

namespace Mate.Merchant.Service
{
    public interface IMerchantService : IDataService<mp_merchant>
    {

        /// <summary>
        /// 获取商户列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="Key"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        IList<MerchantModel> GetMerchantList(int pageIndex, int pageSize, string Key,ref int recordCount);

        /// <summary>
        /// 筛选商户
        /// </summary>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">每页条数</param>
        /// <param name="merchantcategory">商户类型id</param>
        /// <param name="is_hot">是否热门1是 0否</param>
        /// <param name="merchantname">商户名称</param>
        /// <param name="sortType">1评分，2点评数</param>
        /// <param name="isNew">是否按新店排序  1查询最近一个月添加的商家</param>
        /// <param name="isBrand">是否查询品牌商户  1是</param>
        /// <param name="recordCount">总条数</param>
        /// <returns></returns>
        IList<MerchantSearchDto> MerchantSearch(int pageIndex, int pageSize,IEnumerable<int> merchantcategory,int? is_hot,string merchantname
            ,int sortType,int isNew,int isBrand, ref int recordCount);

        /// <summary>
        /// 获取商户详情
        /// </summary>
        /// <param name="merchantId">商户id</param>
        /// <returns></returns>
        MerchantDetailDto MerchantDetail(int merchantId);


    }
}
